const HomeSong = () => import('../views/HomeSong')
const MySong = () => import('../views/MySong')
const Friends = () => import('../views/Friends')
const SinglePlay = () => import('../views/SinglePlay')
const RecommendSongs = () => import('../views/RecommendSongs')
const NewDisc = () => import('../views/NewDisc')
const Download = () => import('../views/Download')
const RankingList = () => import('../views/RankingList')
const SongSheet = () => import('../views/SongSheet/index.vue')
const Djradio = () => import('../views/Djradio')
const Artist = () => import('../views/Artist')
const ArtistPlay = () => import('../views/ArtistPlay')
const Recommend = () => import('../views/Recommend')
export default [
  {
    path: '/',
    redirect: 'HomeSong'
  },
  {
    path: '/homesong',
    name: 'HomeSong',
    component: HomeSong,
    redirect: '/homesong/recommend',
    children: [
      {
        path: 'recommend',
        name: 'Recommend',
        component: Recommend
      },
      // 排行榜
      {
        path: 'rankinglist',
        name: 'RankingList',
        component: RankingList
      },
      // 歌单
      {
        path: 'songsheet',
        name: 'SongSheet',
        component: SongSheet
      },
      {
        path: 'newdisc',
        name: 'NewDisc',
        component: NewDisc
      },
      {
        path: 'djradio',
        name: 'Djradio',
        component: Djradio
      },
      {
        path: 'artist',
        name: 'Artist',
        component: Artist
      }
    ]
  },
  {
    path: '/mysong',
    name: 'MySong',
    component: MySong
  },
  {
    path: '/friends',
    name: 'Friends',
    component: Friends
  },
  {
    path: '/download',
    name: 'Download',
    component: Download
  },

  // 歌手点进去的播放页面
  {
    path: '/artistplay',
    name: 'ArtistPlay',
    component: ArtistPlay
  },
  // 单个歌曲页面
  {
    path: '/singleplay',
    name: 'SinglePlay',
    component: SinglePlay
  },
  // 歌单列表
  {
    path: '/recommendsongs',
    name: 'RecommendSongs',
    component: RecommendSongs
  },
  {
    path: '*',
    redirect:'/'
  },
]
